Understanding psql flags

PSQL=“psql -X --username=freecodecamp --dbname=students --no-align --tuples-only -c”

if any one give me a brief explanation about the flags:- -X,–no-align ?
i have seen the documentation of postgres on this flags but can not understand.

The X flag ignores any settings you may have in your environment that were placed in the psqlrc file. (This is probably done to make sure the tests have consistent results for every person taking the course)

The no-align will prevent the results from having extra spaces to make them look neat and aligned (which would make you work harder in the script to trim them)

2 Likes