Skip to content

Commit

Permalink
! Changed the RPC flag. If launching the editor you must pass -rpc
Browse files Browse the repository at this point in the history
…if you wish to start the RPC server with NXT.

- Removed `-no-rpc` flag as editor's RPC server defaults to off now.
  • Loading branch information
ImLucasBrown committed Nov 22, 2024
1 parent 510d5e0 commit 579e0c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nxt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def editor(args):
else:
paths = [args.path]
os.environ[NXT_DCC_ENV_VAR] = STANDALONE
sys.exit(nxt_editor.launch_editor(paths, start_rpc=not args.no_rpc))
sys.exit(nxt_editor.launch_editor(paths, start_rpc=args.rpc))


def execute(args):
Expand Down Expand Up @@ -167,9 +167,9 @@ def main():
gui_parser.set_defaults(which='ui')
gui_parser.add_argument('path', type=str, nargs='?',
help='file(s) to open', default='')
no_rpc_help = ('Start editor without setting up an rpc server during '
'startup.')
gui_parser.add_argument('-no-rpc', help=no_rpc_help,
rpc_help = ('Start editor with an rpc server running in the '
'background.')
gui_parser.add_argument('-rpc', help=rpc_help,
action='store_true')

exec_parser = subs.add_parser('exec', help='Execute graph. See: exec -h')
Expand Down

0 comments on commit 579e0c4

Please sign in to comment.