You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Input string for the module (if applicable)",
647
669
)
648
-
670
+
649
671
# Target-specific arguments
650
672
target_subparser.add_argument(
651
673
"--system-message",
@@ -674,7 +696,8 @@ def main():
674
696
help="Additional arguments for the judge module (if applicable)",
675
697
)
676
698
judge_subparser.add_argument(
677
-
"-o", "--output",
699
+
"-o",
700
+
"--output",
678
701
type=str,
679
702
default="",
680
703
required=True,
@@ -715,7 +738,7 @@ def main():
715
738
default=None,
716
739
help="Options to pass to the attack module (if applicable)",
717
740
)
718
-
741
+
719
742
# Provider-specific arguments
720
743
provider_subparser.add_argument(
721
744
"--max-tokens",
@@ -730,7 +753,7 @@ def main():
730
753
help="Temperature for the provider module (if applicable)",
731
754
)
732
755
733
-
#endregion
756
+
#endregion
734
757
735
758
args=convert_to_new_args(parser.parse_args())
736
759
@@ -744,8 +767,11 @@ def main():
744
767
ifargs.command=="init":
745
768
# Guard against running init inside the spikee source package directory
746
769
cwd=Path(os.getcwd())
747
-
if (cwd/"cli.py").exists() and (cwd/"tester.py").exists() and (cwd/"generator.py").exists():
748
-
770
+
if (
771
+
(cwd/"cli.py").exists()
772
+
and (cwd/"tester.py").exists()
773
+
and (cwd/"generator.py").exists()
774
+
):
749
775
ifnotargs.force:
750
776
print(
751
777
"[init] ERROR: It looks like you are running 'spikee init' within the Spikee sourcecode directory (e.g. ./spikee/)."
@@ -759,7 +785,7 @@ def main():
759
785
print("[init] spikee init\n")
760
786
print("[init] Use --force to override warnings.")
761
787
sys.exit(1)
762
-
788
+
763
789
else:
764
790
print(
765
791
"[init] WARNING: You are running 'spikee init' inside the Spikee sourcecode directory with --force. This will overwrite Spikee's source code with workspace files. Proceeding with initialization..."
0 commit comments