Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/254'
Browse files Browse the repository at this point in the history
* origin/pr/254:
  Fix: qvm-ls outputs to stderr for --help-* calls
  • Loading branch information
marmarek committed Aug 20, 2023
2 parents 1a394ef + 2cc0898 commit c380412
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qubesadmin/tools/qvm_ls.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ def __call__(self, parser, namespace, values, option_string=None):
for column in sorted(Column.columns.values()))
text += '\n\nAdditionally any VM property may be used as a column, ' \
'see qvm-prefs --help-properties for available values'
parser.exit(message=text + '\n')
print(text + '\n')
sys.exit(0)


class _HelpFormatsAction(argparse.Action):
Expand All @@ -552,7 +553,9 @@ def __call__(self, parser, namespace, values, option_string=None):
' {fmt:{width}s} {columns}\n'.format(
fmt=fmt, columns=','.join(formats[fmt]).upper(), width=width)
for fmt in sorted(formats))
parser.exit(message=text)
print(text)
sys.exit(0)



# common VM power states for easy command-line filtering
Expand Down

0 comments on commit c380412

Please sign in to comment.